import React, { Component } from 'react';
import { ImageBackground, TextInput, View, Image, StatusBar, Text, TouchableOpacity, FlatList, RefreshControl, DeviceEventEmitter } from 'react-native';
import TabBarTitle from '../components/TabBarTitle';
import Colors from '../constants/Colors';
import TabBarImage2, { TabBarAnimationImage, TabBarImageCenter } from '../components/TabBarImage';
import NavigationService from '../constants/NavigationService';

export default class TabButtomScreen extends Component {
    static navigationOptions = ({ navigation, jumpToIndex, scene }) => ({
        title: 'button',
        tabBarLabel: ({ focused }) => (
            <TabBarTitle
                focused={focused}
                title={'发询盘'}
            />
        ),
        tabBarIcon: ({ focused }) => (
            <TabBarImageCenter
                focused={focused}
                hasSelect={require('../res/ic_send.png')}
                noSelect={require('../res/ic_send.png')}
                title={'Receipt'}
            />
        ),
        tabBarOnPress: (options) => {
            NavigationService.navigate('ReleaseDemand')
            return
        },
        tabBarOnLongPress: (options) => {
            return
        },
    });

    constructor(props) {
        super(props)
        this.state = {

        }
    }

    componentDidMount() {
        this.props.navigation.addListener('didFocus', payload => {

        })
    }

    render() {
        return (
            <View style={{ flex: 1, backgroundColor: Colors.colorF5 }}>

            </View>
        )
    }
}